home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / Implementation / Utilities / Util.r < prev    next >
Encoding:
Text File  |  1997-02-13  |  4.8 KB  |  247 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        Util.r
  3.  
  4.     Contains:    resources for Info Utilties
  5.  
  6.     Owned by:    Tantek Çelik
  7.  
  8.     Copyright:    © 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <2>     9/10/96    eeh        1384356: make resources purgeable
  13.          <9>    10/16/95    CC        GM 1292157: Changed "No Kinds" to
  14.                                     "Unknown"; "None Available" to "None for
  15.                                     this Kind".
  16.          <8>     10/4/95    jpa        Include UtilCmmn.r [1285767]
  17.          <7>     9/20/95    TÇ        1285201 GM: Use
  18.                                     alertPositionParentWindowScreen for dialogs
  19.          <6>      9/5/95    JP        1250152: Center “can't replace” alert
  20.                                     properly
  21.          <5>     6/19/95    jpa        Removed "Arcane Info" button from SOM error
  22.                                     dialog. [1258206]
  23.          <4>     5/25/95    jpa        Added SOM error dialogs. [1253380]
  24.          <3>      5/7/95    TÇ        1221281 BB:Need to move No
  25.          <2>     4/27/95    TÇ        1223529 BB: ODSetPOName and ODSetIconFamily
  26.                                     should tweak file in root part case (Did
  27.                                     name piece)
  28.          <1>     4/25/95    JP        first checked in
  29.  
  30.     To Do:
  31.     In Progress:
  32.         
  33. */
  34.  
  35. #define SystemSevenOrBetter 1            // we want the extended types
  36. #define    SystemSevenOrLater    1            // Types.r uses this variable
  37.  
  38. #include "Types.r"
  39.  
  40. #include "UtilDefs.h"
  41.  
  42. #include "UtilCmmn.r"                    // More resources
  43.  
  44. //-------------------------------------------------------------------------------------
  45. // Strings
  46. //-------------------------------------------------------------------------------------
  47.  
  48. resource 'STR ' (kODPartInfoStrUnknownID, purgeable) {
  49.     "Unknown"
  50. };
  51.  
  52. resource 'STR#' (kODInfoUtilStrsID, purgeable) {
  53.     {
  54.          "Unknown"
  55.         ;"None for this Kind"
  56.     }
  57. };
  58.  
  59. //-------------------------------------------------------------------------------------
  60. // Name conflict dialogs
  61. //-------------------------------------------------------------------------------------
  62.  
  63. resource 'DLOG' (kNameConflictDlgID, purgeable /*<eeh> added for 1384356*/) {
  64.     {40, 40, 142, 347},
  65.     movableDBoxProc,
  66.     invisible,
  67.     noGoAway,
  68.     0x0,
  69.     kNameConflictDlgID,
  70.     "Name Conflict",
  71.     alertPositionParentWindowScreen
  72. };
  73.  
  74. resource 'DITL' (kNameConflictDlgID, purgeable /*<eeh> added for 1384356*/) {
  75.     {    /* array DITLarray: 3 elements */
  76.         /* [1] kNameConflictCancelBtn */
  77.         {68, 157, 88, 219},
  78.         Button {
  79.             enabled,
  80.             "Cancel"
  81.         },
  82.         /* [2] kNameConflictReplaceBtn */
  83.         {68, 233, 88, 295},
  84.         Button {
  85.             enabled,
  86.             "Replace"
  87.         },
  88.         /* [3] kNameConflictTextItem */
  89.         {10, 62, 58, 297},
  90.         StaticText {
  91.             disabled,
  92.             "A document named \"^0\" already exists. Do"
  93.             " you want to replace it?"
  94.         },
  95.         /* [4] kNameConflictDefaultButtonItem */
  96.         {65, 154, 92, 222},
  97.         UserItem {
  98.             disabled
  99.         },
  100.         /* [5] */
  101.         {10, 20, 42, 52},
  102.         Icon {
  103.             disabled,
  104.             2
  105.         }
  106.  
  107.     }
  108. };
  109.  
  110.  
  111. resource 'ALRT' (kFilelockedAlrtID, purgeable /*<eeh> added for 1384356*/) {
  112.     {40, 40, 141, 389},
  113.     kFilelockedAlrtID,
  114.     {    /* array: 4 elements */
  115.         /* [1] */
  116.         OK, visible, sound1,
  117.         /* [2] */
  118.         OK, visible, sound1,
  119.         /* [3] */
  120.         OK, visible, sound1,
  121.         /* [4] */
  122.         OK, visible, sound1
  123.     },
  124.     alertPositionParentWindowScreen
  125. };
  126.  
  127. resource 'DITL' (kFilelockedAlrtID, purgeable /*<eeh> added for 1384356*/) {
  128.     {    /* array DITLarray: 2 elements */
  129.         /* [1] */
  130.         {68, 278, 88, 336},
  131.         Button {
  132.             enabled,
  133.             "OK"
  134.         },
  135.         /* [2] */
  136.         {10, 64, 59, 339},
  137.         StaticText {
  138.             disabled,
  139.             "The existing document \"^0\" is locked or "
  140.             "busy and cannot be replaced."
  141.         },
  142.         /* [3] */
  143.         {65, 275, 91, 339},
  144.         UserItem {
  145.             disabled
  146.         },
  147.         /* [4] */
  148.         {10, 20, 42, 52},
  149.         Icon {
  150.             disabled,
  151.             0
  152.         }
  153.     }
  154. };
  155.  
  156.  
  157. resource 'ALRT' (kSOMErrorAlertID, purgeable /*<eeh> added for 1384356*/) {
  158.     {40, 40, 142, 318},
  159.     kSOMErrorAlertID,
  160.     {    /* array: 4 elements */
  161.         /* [1] */
  162.         OK, visible, sound1,
  163.         /* [2] */
  164.         OK, visible, sound1,
  165.         /* [3] */
  166.         OK, visible, sound1,
  167.         /* [4] */
  168.         OK, visible, sound1
  169.     },
  170.     alertPositionParentWindowScreen
  171. };
  172.  
  173. resource 'DITL' (kSOMErrorAlertID, purgeable /*<eeh> added for 1384356*/) {
  174.     {    /* array DITLarray: 4 elements */
  175.         /* [1] */
  176.         {69, 201, 89, 263},
  177.         Button {
  178.             enabled,
  179.             "Quit"
  180.         },
  181.         /* [2] */
  182. /*        {69, 73, 89, 164},
  183.         Button {
  184.             enabled,
  185.             "Arcane Info"
  186.         },
  187. */        /* [3] */
  188.         {10, 72, 58, 265},
  189.         StaticText {
  190.             disabled,
  191.             "Sorry, this document must immediately"
  192.             " quit due to a fatal SOM error."
  193.         },
  194.         /* [4] */
  195.         {10, 20, 42, 52},
  196.         Icon {
  197.             disabled,
  198.             0
  199.         }
  200.     }
  201. };
  202.  
  203. resource 'DLOG' (kSOMErrorDlogID, purgeable /*<eeh> added for 1384356*/) {
  204.     {40, 40, 220, 472},
  205.     dBoxProc,
  206.     invisible,
  207.     noGoAway,
  208.     0x0,
  209.     kSOMErrorDlogID,
  210.     "",
  211.     alertPositionParentWindowScreen
  212. };
  213.  
  214. resource 'DITL' (kSOMErrorDlogID, purgeable /*<eeh> added for 1384356*/) {
  215.     {    /* array DITLarray: 4 elements */
  216.         /* [1] */
  217.         {148, 344, 168, 402},
  218.         Button {
  219.             enabled,
  220.             "Quit"
  221.         },
  222.         /* [2] */
  223.         {148, 262, 168, 320},
  224.         Button {
  225.             enabled,
  226.             "Debug"
  227.         },
  228.         /* [3] */
  229.         {8, 72, 135, 413},
  230.         StaticText {
  231.             disabled,
  232.             ""
  233.         },
  234.         /* [4] */
  235.         {10, 20, 42, 52},
  236.         Icon {
  237.             disabled,
  238.             0
  239.         }
  240.     }
  241. };
  242.  
  243. data 'finf' (1004, purgeable) {
  244.     $"0001 0003 0000 0009"                                /* .......Δ */
  245. };
  246.  
  247.